﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="UpdateUser.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UpdateUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

    .style1
    {
        font-weight: bold;
    }
    .style3
    {
        text-align: right;
    }
        .style4
        {
            text-align: right;
            height: 25px;
        }
        .style5
        {
            height: 25px;
        }
        .style6
        {
            text-align: right;
            height: 28px;
        }
        .style7
        {
            height: 28px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" __designer:mapid="154">
        <tr __designer:mapid="155">
            <td align="left" colspan="2" __designer:mapid="156">
                                Update User</td>
        </tr>
        <tr __designer:mapid="157">
            <td align="left" colspan="2" __designer:mapid="158">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="159">
            <td align="left" colspan="2" __designer:mapid="15a">
                <span class="style1" lang="en-us" __designer:mapid="15b">Details</span></td>
        </tr>
        <tr __designer:mapid="15c">
            <td class="style3" __designer:mapid="15d">
                                                User Name:
                                            </td>
            <td __designer:mapid="15e">
                <asp:TextBox ID="txtUserName" runat="server" ReadOnly="True"></asp:TextBox>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                    ControlToValidate="txtUserName" ErrorMessage="User Name is required." 
                                                    ToolTip="User Name is required." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="161">
            <td class="style3" __designer:mapid="162">
                                                Name:</td>
            <td __designer:mapid="163">
                <asp:TextBox ID="txtName" runat="server" Width = "200" Rows="3"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NameRequired" runat="server" 
                                                    ControlToValidate="txtName" ErrorMessage="Name is required." 
                                                    ToolTip="Name is required." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr __designer:mapid="166">
            <td class="style4" __designer:mapid="167">
                                                ID Type:</td>
            <td __designer:mapid="168" class="style5">
                <asp:DropDownList ID="drpIdType" runat="server" Height="16px" Width="137px">
                    <asp:ListItem>Type1</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr __designer:mapid="16a">
            <td class="style6" __designer:mapid="16b">
                                                ID No:</td>
            <td __designer:mapid="16c" class="style7">
                <asp:TextBox ID="txtIdNo" runat="server" Height="22px" Width="158px"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="16e">
            <td class="style3" __designer:mapid="16f">
                                                Address:</td>
            <td __designer:mapid="170">
                <asp:TextBox ID="txtAddress1" runat="server" Height="20px" Width="187px"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="172">
            <td align="right" __designer:mapid="173">
                                                &nbsp;</td>
            <td __designer:mapid="174">
                <asp:TextBox ID="txtAddress2" runat="server" Height="20px" Width="185px"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="17a">
            <td align="right" __designer:mapid="17b">
                                                Country:</td>
            <td __designer:mapid="17c">
                <asp:DropDownList ID="drpCountry" runat="server">
                    <asp:ListItem>sri lanka</asp:ListItem>
                </asp:DropDownList>
                <asp:CompareValidator ID="cmpvldCountry" runat="server" 
                                                    ControlToValidate="drpCountry" ErrorMessage="Country is Required" 
                                                    Operator="NotEqual" 
                    ValueToCompare="Select One...">*</asp:CompareValidator>
            </td>
        </tr>
        <tr __designer:mapid="180">
            <td align="right" __designer:mapid="181">
                                                City:</td>
            <td __designer:mapid="182">
                <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="184">
            <td align="right" __designer:mapid="185">
                                                Gender:</td>
            <td __designer:mapid="186">
                <asp:DropDownList ID="drpGender" runat="server">
                    <asp:ListItem Value="0">Male</asp:ListItem>
                    <asp:ListItem Value="1">Female</asp:ListItem>
                </asp:DropDownList>
                <asp:CompareValidator ID="cmpvldGender" runat="server" 
                                                    ControlToValidate="drpGender" ErrorMessage="Gender id Required" 
                                                    Operator="NotEqual" 
                    ValueToCompare="Select One...">*</asp:CompareValidator>
            </td>
        </tr>
        <tr __designer:mapid="18c">
            <td align="right" __designer:mapid="18d">
                                                Contact No:</td>
            <td __designer:mapid="18e">
                <asp:TextBox ID="txtContact" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="190">
            <td align="right" __designer:mapid="191">
                                                Postel Code:</td>
            <td __designer:mapid="192">
                <asp:TextBox ID="txtPostalCode" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="194">
            <td align="right" __designer:mapid="195">
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
            </td>
            <td __designer:mapid="197">
                <asp:TextBox ID="Email" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="right" __designer:mapid="19a">
                &nbsp;</td>
            <td __designer:mapid="19b">
                &nbsp;</td>
        </tr>
        <tr __designer:mapid="199">
            <td align="right" __designer:mapid="19a">
                <b>Reset Password</b></td>
            <td __designer:mapid="19b">
                &nbsp;</td>
        </tr>
        <tr __designer:mapid="199">
            <td align="right" __designer:mapid="19a">
                                                <asp:Label ID="PasswordLabel0" runat="server" 
                    AssociatedControlID="Password">Old Password:</asp:Label>
                                            </td>
            <td __designer:mapid="19b">
                                                <asp:TextBox ID="OldPassword" runat="server" 
                    TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                    ControlToValidate="OldPassword" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required." Display="Dynamic">*</asp:RequiredFieldValidator>
                                                </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="right" __designer:mapid="19a">
                                                <asp:Label ID="PasswordLabel" runat="server" 
                    AssociatedControlID="Password">Password:</asp:Label>
                                            </td>
            <td __designer:mapid="19b">
                                                <asp:TextBox ID="Password" runat="server" 
                    TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired0" runat="server" 
                                                    ControlToValidate="Password" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required.">*</asp:RequiredFieldValidator>
                                                </td>
        </tr>
        <tr __designer:mapid="199">
            <td align="right" __designer:mapid="19a">
                                                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                                    AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
                                            </td>
            <td __designer:mapid="19b">
                                                <asp:TextBox ID="ConfirmPassword" 
                    runat="server" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired1" runat="server" 
                                                    ControlToValidate="ConfirmPassword" ErrorMessage="Password is required." 
                                                    ToolTip="Password is required.">*</asp:RequiredFieldValidator>
                                                </td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="right" __designer:mapid="1b6">
                                &nbsp;</td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="right" __designer:mapid="1b6">
                                &nbsp;</td>
            <td __designer:mapid="1b7">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1b5">
            <td align="right" __designer:mapid="1b6" colspan="2">
                                                <asp:CompareValidator ID="PasswordCompare0" runat="server" 
                                                    ControlToCompare="Password" ControlToValidate="OldPassword" 
                                                    Display="Dynamic" 
                                                    ErrorMessage="Old password and new password can't be the same" 
                                                    ValidationGroup="wizCreateUser" Operator="NotEqual" 
                                    style="text-align: left"></asp:CompareValidator>
                                            </td>
        </tr>
        <tr __designer:mapid="1b8">
            <td align="center" colspan="2" __designer:mapid="1b9">
                                                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                                    Display="Dynamic" 
                                                    ErrorMessage="The Password and Confirmation Password must match." 
                                                    ValidationGroup="wizCreateUser"></asp:CompareValidator>
                                            </td>
        </tr>
        <tr __designer:mapid="1bb">
            <td align="center" colspan="2" style="color:Red;" __designer:mapid="1bc">
                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
            </td>
        </tr>
        <tr __designer:mapid="1be">
            <td align="center" colspan="2" style="color:Red;" __designer:mapid="1bf">
                                &nbsp;</td>
        </tr>
        <tr __designer:mapid="1c0">
            <td align="right" __designer:mapid="1c1">
                <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                    CommandName="ChangePassword" Text="Update User" 
                                    ValidationGroup="ctl00$ChangePassword1" 
                                    onclick="ChangePasswordPushButton_Click" />
            </td>
            <td __designer:mapid="1c3">
                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                    CommandName="Cancel" Text="Cancel" />
            </td>
        </tr>
    </table>
</asp:Content>
